﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reserve.aspx.cs" Inherits="User_Scripts_reserve" %>

<%
	NameValueCollection GET = Request.QueryString;
	string cmd = GET.GetValues("cmd")[0];
	bool result;
	
	switch (cmd)
	{
		case "add":
			result = Reserve(GET);
			break;
		case "remove":
			result = Unreserve(GET);
			break;
		default:
			result = false;
			break;
	}

	if (result)
		Response.Write("success");
	else
		Response.Write("failed");
%>